package Test1230am;

public class Test19 {

    public static void main(String[] args) {
        // (19)元素3和元素2互换位置
        int[] arr = {5, 3, 7, 2, 6};

         for (int i = 0; i < arr.length; i++) {
         int temp = arr[i];
         arr[2] = arr[3];
         arr[3] = temp;


        }

    }

}